package com.sctvcloud.qingchuan.beans;

import android.support.annotation.NonNull;

import com.ruihang.generalibrary.ui.util.IListData;
import com.ruihang.generalibrary.utils.IDataDate;
import com.ruihang.generalibrary.utils.IShares;
import com.sctvcloud.qingchuan.ui.util.IListShowData;

import java.sql.Date;

/**
 * 公众号详情数据
 */
public class AccountBean implements IListShowData, IDataDate,IShares {

    private String userId;
    private String userImage;
    private String userNickName;
    private boolean hasAttention;//公众号详情、新闻详情使用
    private boolean attention;//公众号列表使用
    private String description;

    private long fansNumber;//": 2,
    private long dynamicNumber;//": 0,

    private String newDynamicContent;//": "测试测试",//最新一条发布内容（该字段可能为空，需调用方兼容处理）
    private String newDynamicTime;//": "2019-06-11 22:32:46",//最新一条发布时间（该字段可能为空，需调用方兼容处理）
    private String userShareUrl;
    private String personHomePageUrl;


    public String getPersonHomePageUrl() {
        return personHomePageUrl;
    }

    public void setPersonHomePageUrl(String personHomePageUrl) {
        this.personHomePageUrl = personHomePageUrl;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserImage() {
        return userImage;
    }

    public void setUserImage(String userImage) {
        this.userImage = userImage;
    }

    public String getUserNickName() {
        return userNickName;
    }

    public void setUserNickName(String userNickName) {
        this.userNickName = userNickName;
    }

    public boolean isHasAttention() {
        return hasAttention;
    }

    public void setHasAttention(boolean hasAttention) {
        this.hasAttention = hasAttention;
    }



    public boolean isAttention() {
        return attention;
    }

    public void setAttention(boolean attention) {
        this.attention = attention;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public long getFansNumber() {
        return fansNumber;
    }

    public void setFansNumber(long fansNumber) {
        this.fansNumber = fansNumber;
    }

    public long getDynamicNumber() {
        return dynamicNumber;
    }

    public void setDynamicNumber(long dynamicNumber) {
        this.dynamicNumber = dynamicNumber;
    }

    public String getUserShareUrl() {
        return userShareUrl;
    }

    public void setUserShareUrl(String userShareUrl) {
        this.userShareUrl = userShareUrl;
    }

    public String getNewDynamicContent() {
        return newDynamicContent;
    }

    public void setNewDynamicContent(String newDynamicContent) {
        this.newDynamicContent = newDynamicContent;
    }

    public String getNewDynamicTime() {
        return newDynamicTime;
    }

    public void setNewDynamicTime(String newDynamicTime) {
        this.newDynamicTime = newDynamicTime;
    }

    @Override
    public String getTime() {
        return null;
    }

    @Override
    public IListShowData getOwenerData() {
        return null;
    }

    @Override
    public String getDataTitle() {
        return null;
    }

    @Override
    public String getDataImg() {
        return null;
    }

    @Override
    public String getDataTag() {
        return null;
    }

    @Override
    public String getDataId() {
        return null;
    }

    @Override
    public int getDataType() {
        return 0;
    }

    @Override
    public int getDataViewType() {
        return 0;
    }

    @Override
    public IListData getOwner() {
        return null;
    }

    @Override
    public Date getDataDate() {
        return null;
    }

    @Override
    public void setDataDate(Date date) {

    }

    @NonNull
    @Override
    public String getDatePattern() {
        return "yyyy-MM-dd HH:mm";
    }


    @Override
    public String getDateString() {
        return newDynamicTime;
    }

    @Override
    public String getShareTitle() {
        return userNickName;
    }

    @Override
    public String getShareH5() {
        return userShareUrl;
    }

    @Override
    public String getShareImage() {
        return userImage;
    }

    @Override
    public String getShareDigest() {
        return "";
    }

    @Override
    public String getShareURL() {
        return personHomePageUrl;
    }
}
